<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>

        *{
            padding: 0;
            margin: 0;
        }

        div{
            width: 200px;
            height: 200px;
            background-color: pink;
        }

        .div01{
            margin-bottom: 20px;
            border: 1px solid red;
        }

        p{
            width: 100px;
            height: 100px;
            background-color: orange;
            margin-top: 50px;
        }

        .div02{
            margin-top: 100px;
        }
    </style>
</head>
<body>
    <div class="div01"><p></p></div>
    <div class="div02"></div>
</body>
</html>